1. If a method can be static, then declare that he is static, speed can be increased by 1/4;
2.echo is more efficient than print because Echo does not return a value, and print returns an integral type;
3. Set the maximum number of cycles before
1. If a method can be static, then declare that he is static, speed can be increased by 1/4;2.echo is more efficient than print,because Echo has no return value, Print returns an integer type;3.set the maximum number of cycles before the loop, not
Summary of methods to optimize the PHP program. For more information about php learning, see section 1. if a method c ++ an be static, declare it static. speed improvement is by a factor of 4. if a method can be static, it will be declared as static.
1. If a method can be static, declare it as static, and the speed can be increased by 1/4;
2. The echo efficiency is higher than that of print. Because ECHO does not return a value, print returns an integer;
3. Set the maximum number of cycles
Class file javasencoder: http://www.bytearray.org/wp-content/projects/fastjpeg/JPEGEncoder.as
Here is a little demo (encoding a 2880*2880 bitmapdata) showing the difference between the old version and the new one, if you cocould post your
1. If a method c ++ an be static, declare it static. Speed improvement is by a factor of 4. If a method can be static, make a static Declaration on it. The speed can be increased to 4 times.
2. echo is faster than print. echo is faster than print.
3
40 tips for optimizing php code. 1. if a method can be static, it is declared as static, and the speed can be improved by 14; 2. echo is more efficient than print. because echo does not return a value, print returns an integer. 3. before the Loop 1.
40 small instances optimized for php code 1. if a method can be static, it is declared as static, and the speed can be increased by 1/4; 2. echo is more efficient than print. because echo does not return a value, print returns an integer. 3. set the
1. If a method can be static, then declare that he is static, the speed can be increased by 1/4;
2.echo is more efficient than print, because Echo has no return value, and print returns an integer type;
3. Set the maximum number of cycles before the
PHP code optimization set
1. If a method can be static, declare it as static, and the speed can be increased by 1/4;
2. The echo efficiency is higher than that of print. Because echo does not return a value, print returns an integer;
3. Set the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.